﻿@model Inscriptionem.Areas.Inscriptionem.Models.Views.UploadViewModel

@{
    ViewBag.Title = "Inscriptionem » Upload » Upload";
    Layout = "../Shared/Layout.cshtml";

    ViewBag.CurrentPage = "Upload";

    string message = string.Empty;

    switch (Model.Error)
    {
        case Inscriptionem.Areas.Inscriptionem.Models.Enums.UploadError.FileEmpty:
        {
            message = "Please select file.";
            break;
        }
    }
}

<div class="outer" id="contentwrap">
    @{Html.RenderPartial("NavigationMenu");}
    <div class="postcont">
		<div id="content">
            <div class="post type-post status-publish format-standard hentry">
                <h2 class="title">Upload</h2>
                <div class="postdate-single error-message">@message</div>
                <hr />
                <form method="post" action="/Inscriptionem/Upload/Add"  enctype="multipart/form-data">
				    <div class="entry">
                        <p>File <input type="file" name="file" id="file" /></p>
	                </div>

                    <input type="reset" value="Reset" />&nbsp;|&nbsp;<input type="submit" value="Upload" />
                </form>
			</div>
        </div>
	</div>	
</div>